package framework.runtime;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.servlet.ModelAndView;

/**
 * JSON视图模型
 */
@Slf4j
public class JsonModelView extends ModelAndView {

    public JsonModelView() {
        this.setView(new JsonDataView());
    }

    public JsonModelView(Object data) {
        this.setView(new JsonDataView(data));
    }

}
